<div class="form-group d-none" id="form_group_{$form[type].name}">
  <input type="hidden" name="{$form[type].name}" value="{$form[type].value|default=''}" class="form-control" id="{$form[type].name}">
</div>